﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

using DQYT.HTDZ.BLL;
using DQYT.HTDZ.Model;

namespace DQYT.HTDZ.Web.BDDATESOURSE
{
    public partial class Show : Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    decimal ID = (Convert.ToDecimal(strid));
                    ShowInfo(ID);
                }
            }
        }

        private void ShowInfo(decimal ID)
        {
            BDDATESOURSEBLL bll = new BDDATESOURSEBLL();
            BDDATESOURCEModel model = bll.GetModel(ID);
            this.lblID.Text = model.ID.ToString();
            this.lblWELLID.Text = model.WELLID;
            this.lblJCRQ.Text = model.JCRQ.ToString();
            this.lblKSSJ.Text = model.KSSJ.ToString();
            this.lblJSSJ.Text = model.JSSJ.ToString();
            this.lblCJZSJ.Text = model.CJZSJ.ToString();
            this.lblCJPL.Text = model.CJPL.ToString();
            this.lblCJZDS.Text = model.CJZDS.ToString();
            this.lblSCCDS.Text = model.SCCDS.ToString();
            this.lblXCCDS.Text = model.XCCDS.ToString();
            this.lblPULLID.Text = model.PULLID.ToString();
            this.lblDJID.Text = model.DJID.ToString();
            this.lblPDGID.Text = model.PDGID.ToString();
            this.lblGLDW.Text = model.GLDW;
            this.lblJCDW.Text = model.JCDW;
            this.lblCSR.Text = model.CSR;
            this.lblCJSBXH.Text = model.CJSBXH;
            this.lblCJSBBB.Text = model.CJSBBB;
            this.lblSCRJBB.Text = model.SCRJBB;
            this.lblCJSJ.Text = model.CJSJ.ToString();

        }


    }
}
